
case class Women(name: String, age: Int) {
  override def toString: String = "Women==>" + name + "," + age
}

object Women {
  def main(args: Array[String]): Unit = {

    val w = new Women("wangxing",30)
    println(w.toString)

    val fields = Array("name", "age")
    fields.foreach(print)
  }
}
